###############################################
# === xeno_origin_traits.txt ===
###############################################
##############################################################
###     Xenomorph Domain - Origin Traits     ###
##############################################################
#
# Origin-granted traits rewritten in the same readable block style.
# These are not intended for normal species creation.
#
###

# Undying Matriarch
trait_undying_matriarch = {
	cost = {
			base = 0
			modifier = {
				add = -0
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
		leader_trait = { ruler }
	modification = no
	custom_tooltip = trait_undying_matriarch_effect

	tags = {
		organic
		xeno_origin
	}

	icon = "gfx/interface/icons/traits/leader_trait_icons/leader_trait_lv_monstrous.dds"

	modifier = {
		# Undying Matriarch
				planet_stability_add = 10
				country_unity_produces_mult = 0.10
	
	}
}

# Fragmented Hive Mind
trait_fragmented_hive_mind = {
	cost = {
			base = 0
			modifier = {
				add = -0
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	modification = no
	custom_tooltip = trait_fragmented_hive_mind_effect

	species_potential_add = {
		always = no
	}

	tags = {
		organic
		xeno_origin
	}

	icon = "gfx/interface/icons/traits/trait_lv_brood_parasite.dds"

	modifier = {
		# Fragmented Hive Mind
				country_unity_produces_mult = -0.15
				logistic_growth_mult = -0.10
				all_technology_research_speed = 0.20
	
	}
}

###############################################
# === xeno_species_traits_normal.txt ===
###############################################
#####################################
###     Xenomorph Biological Traits     ###
#####################################
#
# Rewritten to follow the LV-style trait layout.
# Xenomorph traits are gated behind trait_xenomorph unless they are origin/control traits.
# Subspecies/hostline rule: only one creation-menu hostline can be selected; additional hostlines require research.
#
###

# Uncontrolled combat mutation
trait_accidental_variation = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_accidental_variation_effect
	randomized = yes

	species_potential_add = {
				always = yes
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	opposites = {
				trait_controllable_risk
				trait_genetically_manipulated
				trait_rebellious_xenomorphs
	
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_accidental_variation.dds"

	modifier = {
		# Uncontrolled combat mutation
				army_attack_damage_mult = 0.25
				army_health = 0.1
				species_leader_exp_gain = -0.1
	
	}

		slave_cost = {
			energy = 275
		}
}

# Weaponized but contained strain
trait_controllable_risk = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_controllable_risk_effect
	randomized = no

	species_potential_add = {
				always = yes
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	opposites = {
				trait_accidental_variation
				trait_rebellious_xenomorphs
	
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_controllable_risk.dds"

	modifier = {
		# Weaponized but contained strain
				planet_jobs_unity_produces_mult = 0.2
				logistic_growth_mult = -0.1
				army_defense_damage_mult = 0.2
				species_empire_size_mult = 0.10
	
	}

		slave_cost = {
			energy = 275
		}
}

# Designed organism strain
trait_genetically_manipulated = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_genetically_manipulated_effect
	randomized = no

	species_potential_add = {
				always = yes
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	opposites = {
				trait_accidental_variation
				trait_rebellious_xenomorphs
	
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_genetically_manipulated.dds"

	modifier = {
		# Designed organism strain
				species_empire_size_mult = -0.2
				logistic_growth_mult = -0.1
				army_damage_mult = 0.25
				army_defense_damage_mult = 0.25
	
	}

		slave_cost = {
			energy = 275
		}
}

# Unstable escaped brood
trait_rebellious_xenomorphs = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_rebellious_xenomorphs_effect
	randomized = no

	species_potential_add = {
				always = no
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	opposites = {
				trait_genetically_manipulated
				trait_accidental_variation
	
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_rebellious_xenomorphs.dds"

	modifier = {
		# Unstable escaped brood
				logistic_growth_mult = 0.25
				army_defense_damage_mult = 0.2
				species_empire_size_mult = 0.20
				planet_jobs_unity_produces_mult = -0.2
	
	}

		slave_cost = {
			energy = 275
		}
}

# Perfect organism baseline
trait_xenomorph = {
	cost = {
			base = 0
			modifier = {
				add = -0
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_effect
	randomized = no

	species_potential_add = {
				always = no
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		interesting
		
	}

	opposites = {
		trait_lv_large_breasts
		trait_lv_huge_breasts
		trait_lv_multiple_breasts
		trait_lv_small_breasts
		trait_lv_fuckable_nipples
		trait_lv_shapely_ass
		trait_lv_breeder_hips
		trait_lv_drooling_vagina
		trait_lv_large_penis
		trait_lv_huge_penis
		trait_lv_multiple_penises
		trait_lv_equine_penis
		trait_lv_small_penis
		trait_babe_mega_glans
		trait_babe_mega_scrotums
		trait_babe_mega_foreskins
		trait_babe_phimosis_penis
		trait_babe_studded_penis
		trait_babe_ribbed_penis
		trait_babe_bulbous
		trait_babe_tentacle_penis
		trait_babe_mating_plug
		trait_babe_min_hips
		trait_babe_mega_nipples
		trait_babe_mega_vulvas
		trait_babe_mega_labia_minora
		trait_babe_micro_vaginas
		trait_babe_acrobatic_vaginas
		trait_babe_prolapsed_vaginas
		trait_babe_cervix
		trait_babe_mega_clitoris
	}


	icon = "gfx/interface/icons/traits/trait_xenomorph.dds"
	leader_age_min = 1

	modifier = {
		# Perfect organism baseline
				pc_nuked_habitability = 2
				pop_environment_tolerance = 0.1
				army_attack_damage_mult = 0.5
				army_health = 0.5
	
	}

		slave_cost = {
			energy = 500
		}
}

# Efficient internal metabolism
trait_xenomorph_metabolism = {
	cost = {
			base = 2
			modifier = {
				add = -2
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_metabolism_effect
	randomized = no

	species_potential_add = {
				always = no
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_metabolism.dds"
	leader_age_min = 1

	modifier = {
		# Efficient internal metabolism
				planet_pops_upkeep_mult = -0.25
	
	}

		slave_cost = {
			energy = 500
		}
}

# Hardened chitin harvest
trait_xenomorph_carapace = {
	cost = {
			base = 2
			modifier = {
				add = -2
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_carapace_effect
	randomized = no

	species_potential_add = {
				always = no
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_carapace.dds"

		resources = {
			produces = {
				trigger = {
					exists = owner
				}
				alloys = 0.05
			}
		}

		slave_cost = {
			energy = 500
		}
}

# Acidic blood extraction
trait_xenomorph_blood = {
	cost = {
			base = 2
			modifier = {
				add = -2
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_blood_effect
	randomized = no

	species_potential_add = {
				always = no
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_blood.dds"

		resources = {
			produces = {
				trigger = {
					exists = owner
				}
				exotic_gases = 0.01
			}
		}

		slave_cost = {
			energy = 500
		}
}

# Low-level hive resonance
trait_xenomorph_psychic = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_psychic_effect
	randomized = no

	species_potential_add = {
				always = no
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_psychic.dds"

	modifier = {
		# Low-level hive resonance
				species_empire_size_mult = -0.10
	
	}

		slave_cost = {
			energy = 500
		}
}

# Aggressive implantation behavior
trait_xenomorph_aggressive_implanters = {
	cost = {
			base = 2
			modifier = {
				add = -2
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_aggressive_implanters_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_aggressive_implanters.dds"

	modifier = {
		# Aggressive implantation behavior
				logistic_growth_mult = 0.10
				planet_pop_assembly_mult = 0.10
				army_damage_mult = 0.05
	
	}

		slave_cost = {
			energy = 500
		}
}

# Accelerated caste growth
trait_xenomorph_rapid_maturation = {
	cost = {
			base = 2
			modifier = {
				add = -2
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_rapid_maturation_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_rapid_maturation.dds"

	modifier = {
		# Accelerated caste growth
				logistic_growth_mult = 0.15
				leader_lifespan_add = -10
	
	}

		slave_cost = {
			energy = 500
		}
}

# Parasitic host exploitation
trait_xenomorph_brood_parasitism = {
	cost = {
			base = 2
			modifier = {
		# 3_64: slave-produces restoration (3_59-anchored)
		planet_xenomorph_host_breeders_produces_mult = 0.05
		planet_xenomorph_breeding_toys_produces_mult = 0.05
				add = -2
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_brood_parasitism_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_brood_parasitism.dds"

	modifier = {
		# Parasitic host exploitation
				pop_livestock_food_output = 0.10
				planet_pop_assembly_mult = 0.05
	
	}

		slave_cost = {
			energy = 500
		}
}

# Dense ovomorph production
trait_xenomorph_ovomorph_abundance = {
	cost = {
			base = 2
			modifier = {
				add = -2
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_ovomorph_abundance_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_ovomorph_abundance.dds"

	modifier = {
		# Dense ovomorph production
				planet_xenomorph_egg_storage_jobs_produces_mult = 0.15
				planet_pop_assembly_mult = 0.10
				planet_pops_organics_food_upkeep_mult = 0.10
	
	}

		slave_cost = {
			energy = 500
		}
}

# Vacuum-adapted nesting instincts
trait_xenomorph_void_nesting = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_void_nesting_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		xeno_adaptation
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_void_nesting.dds"

	modifier = {
		# Vacuum-adapted nesting instincts
				pop_habitat_habitability = 0.20
				pop_housing_usage_mult = -0.05
	
	}

		slave_cost = {
			energy = 500
		}
}

# Toxic-world endurance
trait_xenomorph_toxic_resilience = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_toxic_resilience_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	opposites = {
				trait_xenomorph_frost_hardened_chitin
				trait_xenomorph_dune_burrowers
				trait_xenomorph_abyssal_hivebreed
	
	}

	tags = {
		organic
		positive
		xeno_adaptation
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_toxic_resilience.dds"

	modifier = {
		# Toxic-world endurance
				pc_nuked_habitability = 0.20
				pop_environment_tolerance = 0.05
				planet_pops_organics_food_upkeep_mult = -0.05
	
	}

		slave_cost = {
			energy = 500
		}
}

# Cold-hardened shell structure
trait_xenomorph_frost_hardened_chitin = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_frost_hardened_chitin_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	opposites = {
				trait_xenomorph_toxic_resilience
				trait_xenomorph_dune_burrowers
				trait_xenomorph_abyssal_hivebreed
	
	}

	tags = {
		organic
		positive
		xeno_adaptation
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_frost_hardened_chitin.dds"

	modifier = {
		# Cold-hardened shell structure
				pc_arctic_habitability = 0.15
				pc_alpine_habitability = 0.15
				pc_tundra_habitability = 0.15
				army_health = 0.10
	
	}

		slave_cost = {
			energy = 500
		}
}

# Dry-world burrowing instincts
trait_xenomorph_dune_burrowers = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_dune_burrowers_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	opposites = {
				trait_xenomorph_toxic_resilience
				trait_xenomorph_frost_hardened_chitin
				trait_xenomorph_abyssal_hivebreed
	
	}

	tags = {
		organic
		positive
		xeno_adaptation
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_dune_burrowers.dds"

	modifier = {
		# Dry-world burrowing instincts
				pc_desert_habitability = 0.15
				pc_arid_habitability = 0.15
				pc_savannah_habitability = 0.15
				planet_miners_minerals_produces_mult = 0.05
	
	}

		slave_cost = {
			energy = 500
		}
}

# Aquatic hive adaptation
trait_xenomorph_abyssal_hivebreed = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_abyssal_hivebreed_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	opposites = {
				trait_xenomorph_toxic_resilience
				trait_xenomorph_frost_hardened_chitin
				trait_xenomorph_dune_burrowers
	
	}

	tags = {
		organic
		positive
		xeno_adaptation
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_abyssal_hivebreed.dds"

	modifier = {
		# Aquatic hive adaptation
				pc_ocean_habitability = 0.20
				planet_farmers_food_produces_mult = 0.05
				army_health = 0.05
	
	}

		slave_cost = {
			energy = 500
		}
}

# Black goo mutation
trait_xenomorph_black_goo_touched = {
	cost = {
			base = 2
			modifier = {
				add = -2
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_black_goo_touched_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		xeno_mutation
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_black_goo_touched.dds"

	modifier = {
		# Black goo mutation
				logistic_growth_mult = 0.10
				planet_researchers_society_research_produces_mult = 0.10
				pop_environment_tolerance = 0.05
				planet_stability_add = -3
	
	}

		slave_cost = {
			energy = 500
		}
}

# Unstable mutation pattern
trait_xenomorph_unstable_morphology = {
	cost = {
			base = -1
			modifier = {
				add = 1
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_unstable_morphology_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		negative
		xeno_mutation
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_unstable_morphology.dds"

	modifier = {
		# Unstable mutation pattern
				pop_environment_tolerance = 0.10
				leader_lifespan_add = -10
				planet_stability_add = -5
	
	}

		slave_cost = {
			energy = 500
		}
}

# Inherited hive memory
trait_xenomorph_genetic_memory = {
	cost = {
			base = 3
			modifier = {
				add = -3
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_genetic_memory_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
				exists = from
				from = {
					OR = {
						has_technology = tech_xenomorph_genetic_memory_archives
						has_origin = origin_xenomorph_prime
					}
				}
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_genetic_memory.dds"

	modifier = {
		# Inherited hive memory
				leader_species_exp_gain = 0.10
				planet_jobs_unity_produces_mult = 0.05
				planet_researchers_society_research_produces_mult = 0.05
	
	}

		slave_cost = {
			energy = 500
		}
}

# Directed adaptive genome
trait_xenomorph_hyper_adaptive_genome = {
	cost = {
			base = 3
			modifier = {
				add = -3
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_hyper_adaptive_genome_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_hyper_adaptive_genome.dds"

	modifier = {
		# Directed adaptive genome
				pop_environment_tolerance = 0.20
				logistic_growth_mult = 0.05
				modify_species_cost_mult = -0.10
	
	}

		slave_cost = {
			energy = 500
		}
}

# Mammalian host traits
trait_xenomorph_mammalian_hostline = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_mammalian_hostline_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		OR = {
			# Creation menu: allow the first hostline only.
			NOR = {
				has_trait = trait_xenomorph_mammalian_hostline
				has_trait = trait_xenomorph_reptilian_hostline
				has_trait = trait_xenomorph_avian_hostline
				has_trait = trait_xenomorph_arthropoid_hostline
				has_trait = trait_xenomorph_lithoid_hostline
				has_trait = trait_xenomorph_psionic_hostline
				has_trait = trait_xenomorph_cybernetic_hostline
			}
			# After creation: researched hostlines may be added through modification/events.
			exists = from
			from = { has_technology = tech_xenomorph_mammalian_host_absorption }
			exists = from
			from = { has_country_flag = lv_cheat_mode }
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_mammalian_hostline.dds"

	modifier = {
		# Mammalian host traits
				planet_amenities_mult = 0.05
				planet_jobs_unity_produces_mult = 0.05
				pop_environment_tolerance = 0.05
	
	}

		slave_cost = {
			energy = 500
		}
}

# Reptilian host traits
trait_xenomorph_reptilian_hostline = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_reptilian_hostline_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		OR = {
			# Creation menu: allow the first hostline only.
			NOR = {
				has_trait = trait_xenomorph_mammalian_hostline
				has_trait = trait_xenomorph_reptilian_hostline
				has_trait = trait_xenomorph_avian_hostline
				has_trait = trait_xenomorph_arthropoid_hostline
				has_trait = trait_xenomorph_lithoid_hostline
				has_trait = trait_xenomorph_psionic_hostline
				has_trait = trait_xenomorph_cybernetic_hostline
			}
			# After creation: researched hostlines may be added through modification/events.
			exists = from
			from = { has_technology = tech_xenomorph_reptilian_host_absorption }
			exists = from
			from = { has_country_flag = lv_cheat_mode }
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_reptilian_hostline.dds"

	modifier = {
		# Reptilian host traits
				army_health = 0.10
				planet_miners_minerals_produces_mult = 0.05
				pop_environment_tolerance = 0.05
	
	}

		slave_cost = {
			energy = 500
		}
}

# Avian host traits
trait_xenomorph_avian_hostline = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_avian_hostline_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		OR = {
			# Creation menu: allow the first hostline only.
			NOR = {
				has_trait = trait_xenomorph_mammalian_hostline
				has_trait = trait_xenomorph_reptilian_hostline
				has_trait = trait_xenomorph_avian_hostline
				has_trait = trait_xenomorph_arthropoid_hostline
				has_trait = trait_xenomorph_lithoid_hostline
				has_trait = trait_xenomorph_psionic_hostline
				has_trait = trait_xenomorph_cybernetic_hostline
			}
			# After creation: researched hostlines may be added through modification/events.
			exists = from
			from = { has_technology = tech_xenomorph_avian_host_absorption }
			exists = from
			from = { has_country_flag = lv_cheat_mode }
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_avian_hostline.dds"

	modifier = {
		# Avian host traits
				planet_technician_energy_produces_mult = 0.05
				leader_species_exp_gain = 0.05
				pop_housing_usage_mult = -0.05
	
	}

		slave_cost = {
			energy = 500
		}
}

# Arthropoid host traits
trait_xenomorph_arthropoid_hostline = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_arthropoid_hostline_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		OR = {
			# Creation menu: allow the first hostline only.
			NOR = {
				has_trait = trait_xenomorph_mammalian_hostline
				has_trait = trait_xenomorph_reptilian_hostline
				has_trait = trait_xenomorph_avian_hostline
				has_trait = trait_xenomorph_arthropoid_hostline
				has_trait = trait_xenomorph_lithoid_hostline
				has_trait = trait_xenomorph_psionic_hostline
				has_trait = trait_xenomorph_cybernetic_hostline
			}
			# After creation: researched hostlines may be added through modification/events.
			exists = from
			from = { has_technology = tech_xenomorph_arthropoid_host_absorption }
			exists = from
			from = { has_country_flag = lv_cheat_mode }
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_arthropoid_hostline.dds"

	modifier = {
		# Arthropoid host traits
				planet_jobs_worker_produces_mult = 0.05
				planet_jobs_simple_drone_produces_mult = 0.05
				army_damage_mult = 0.10
				pop_housing_usage_mult = -0.05
	
	}

		slave_cost = {
			energy = 500
		}
}

# Lithoid host traits
trait_xenomorph_lithoid_hostline = {
	cost = {
			base = 1
			modifier = {
				add = -1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_lithoid_hostline_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		OR = {
			# Creation menu: allow the first hostline only.
			NOR = {
				has_trait = trait_xenomorph_mammalian_hostline
				has_trait = trait_xenomorph_reptilian_hostline
				has_trait = trait_xenomorph_avian_hostline
				has_trait = trait_xenomorph_arthropoid_hostline
				has_trait = trait_xenomorph_lithoid_hostline
				has_trait = trait_xenomorph_psionic_hostline
				has_trait = trait_xenomorph_cybernetic_hostline
			}
			# After creation: researched hostlines may be added through modification/events.
			exists = from
			from = { has_technology = tech_xenomorph_lithoid_host_absorption }
			exists = from
			from = { has_country_flag = lv_cheat_mode }
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_genetic_memory.dds"

	modifier = {
		# Lithoid host traits
				planet_miners_minerals_produces_mult = 0.10
				army_health = 0.20
				logistic_growth_mult = -0.10
	
	}

		slave_cost = {
			energy = 500
		}
}

# Psionic host traits
trait_xenomorph_psionic_hostline = {
	cost = {
			base = 2
			modifier = {
				add = -2
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_psionic_hostline_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		exists = from
		from = {
			OR = {
				has_technology = tech_xenomorph_psionic_host_absorption
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_psychic.dds"

	modifier = {
		# Psionic host traits
				planet_jobs_unity_produces_mult = 0.10
				planet_researchers_society_research_produces_mult = 0.10
				planet_stability_add = 5
	
	}

		slave_cost = {
			energy = 500
		}
}

# Cybernetic host traits
trait_xenomorph_cybernetic_hostline = {
	cost = {
			base = 2
			modifier = {
				add = -2
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_cybernetic_hostline_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		exists = from
		from = {
			OR = {
				has_technology = tech_xenomorph_cybernetic_host_absorption
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		positive
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_genetic_memory.dds"

	modifier = {
		# Cybernetic host traits
				planet_researchers_engineering_research_produces_mult = 0.10
				army_damage_mult = 0.10
				leader_lifespan_add = 10
	
	}

		slave_cost = {
			energy = 500
		}
}

# Ravenous food demand
trait_xenomorph_ravenous_metabolism = {
	cost = {
			base = -2
			modifier = {
				add = 2
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_ravenous_metabolism_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		negative
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_metabolism.dds"

	modifier = {
		# Ravenous food demand
				planet_pops_organics_food_upkeep_mult = 0.25
				logistic_growth_mult = 0.10
	
	}

		slave_cost = {
			energy = 250
		}
}

# Unstable aggression
trait_xenomorph_hyper_aggression = {
	cost = {
			base = -1
			modifier = {
				add = 1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_hyper_aggression_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		negative
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_hyper_aggression.dds"

	modifier = {
		# Unstable aggression
				army_damage_mult = 0.20
				planet_stability_add = -5
				planet_crime_add = 10
	
	}

		slave_cost = {
			energy = 250
		}
}

# Royal command dependency
trait_xenomorph_queen_dependency = {
	cost = {
			base = -1
			modifier = {
				add = 1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_queen_dependency_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		negative
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph.dds"

	modifier = {
		# Royal command dependency
				planet_jobs_unity_produces_mult = 0.05
				planet_stability_add = -3
	
	}

		slave_cost = {
			energy = 250
		}
}

# Light-sensitive hunting pattern
trait_xenomorph_light_sensitivity = {
	cost = {
			base = -1
			modifier = {
				add = 1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_light_sensitivity_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		negative
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph.dds"

	modifier = {
		# Light-sensitive hunting pattern
				pc_desert_habitability = -0.10
				pc_arid_habitability = -0.10
				pc_savannah_habitability = -0.10
				army_damage_mult = 0.10
	
	}

		slave_cost = {
			energy = 250
		}
}

# Disposable drone strain
trait_xenomorph_disposable_drones = {
	cost = {
			base = -1
			modifier = {
				add = 1
				has_country_flag = lv_cheat_mode
			}
		}
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_disposable_drones_effect
	randomized = no

	species_potential_add = {
				has_trait = trait_xenomorph
	
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		negative
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph.dds"

	modifier = {
		# Disposable drone strain
				logistic_growth_mult = 0.15
				leader_lifespan_add = -20
				army_upkeep_mult = -0.10
	
	}

		slave_cost = {
			energy = 250
		}
}

###############################################
# === xeno_subspecies_traits.txt ===
###############################################
#####################################
###     Xenomorph Subspecies Traits     ###
#####################################
#
# Rewritten to follow the LV-style trait layout.
# Xenomorph traits are gated behind trait_xenomorph unless they are origin/control traits.
# Subspecies/hostline rule: only one creation-menu hostline can be selected; additional hostlines require research.
#
###

# Xeno Mammalian Host
trait_xeno_mammalian_host = {
	cost = {
			base = 0
			modifier = {
				add = -0
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xeno_mammalian_host_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		exists = from
		from = {
			OR = {
				has_country_flag = lv_cheat_mode
				has_country_flag = xeno_subspecies_research_unlocked
			}
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		interesting
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xeno_mammalian_host.dds"

	modifier = {
		# Xeno Mammalian Host
				army_attack_damage_mult = 0.05
				army_morale_damage_mult = 0.10
	
	}

		slave_cost = { energy = 100 }
}

# Xeno Arboreal Host
trait_xeno_arboreal_host = {
	cost = {
			base = 0
			modifier = {
				add = -0
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xeno_arboreal_host_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		exists = from
		from = {
			OR = {
				has_country_flag = lv_cheat_mode
				has_country_flag = xeno_subspecies_research_unlocked
			}
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		interesting
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xeno_arboreal_host.dds"

	modifier = {
		# Xeno Arboreal Host
				army_morale_damage_mult = 0.15
				army_collateral_damage_mult = -0.20
	
	}

		slave_cost = { energy = 100 }
}

# Xeno Acid Gland
trait_xeno_acid_gland = {
	cost = {
			base = 0
			modifier = {
				add = -0
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xeno_acid_gland_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		exists = from
		from = {
			OR = {
				has_country_flag = lv_cheat_mode
				has_country_flag = xeno_subspecies_research_unlocked
			}
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		interesting
		
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_aggressive_implanters.dds"

	modifier = {
		# Xeno Acid Gland
				army_attack_damage_mult = 0.10
				army_collateral_damage_mult = 0.30
	
	}

		slave_cost = { energy = 100 }
}

# Xeno Carapace Heavy
trait_xeno_carapace_heavy = {
	cost = {
			base = 0
			modifier = {
				add = -0
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xeno_carapace_heavy_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		exists = from
		from = {
			OR = {
				has_country_flag = lv_cheat_mode
				has_country_flag = xeno_subspecies_research_unlocked
			}
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		interesting
		
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xeno_carapace_heavy.dds"

	modifier = {
		# Xeno Carapace Heavy
				army_health = 0.30
				army_attack_damage_mult = 0.20
				logistic_growth_mult = -0.05
	
	}

		slave_cost = { energy = 100 }
}

# Xeno Adrenal
trait_xeno_adrenal = {
	cost = {
			base = 0
			modifier = {
				add = -0
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xeno_adrenal_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		exists = from
		from = {
			OR = {
				has_country_flag = lv_cheat_mode
				has_country_flag = xeno_subspecies_research_unlocked
			}
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		interesting
		
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xeno_adrenal.dds"

	modifier = {
		# Xeno Adrenal
				army_attack_damage_mult = 0.15
				army_morale_damage_mult = 0.05
	
	}

		slave_cost = { energy = 100 }
}

# Xeno Aquatic Host
trait_xeno_aquatic_host = {
	cost = {
			base = 0
			modifier = {
				add = -0
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xeno_aquatic_host_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		exists = from
		from = {
			OR = {
				has_country_flag = lv_cheat_mode
				has_country_flag = xeno_subspecies_research_unlocked
			}
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		interesting
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xeno_aquatic_host.dds"

	modifier = {
		# Xeno Aquatic Host
				army_health = 0.10
				pc_ocean_habitability = 0.20
				pc_continental_habitability = 0.10
	
	}

		slave_cost = { energy = 100 }
}

# Xeno Spore Host
trait_xeno_spore_host = {
	cost = {
			base = 0
			modifier = {
				add = -0
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xeno_spore_host_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		exists = from
		from = {
			OR = {
				has_country_flag = lv_cheat_mode
				has_country_flag = xeno_subspecies_research_unlocked
			}
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		interesting
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xeno_spore_host.dds"

	modifier = {
		# Xeno Spore Host
				army_morale_damage_mult = 0.20
				army_attack_damage_mult = -0.05
	
	}

		slave_cost = { energy = 100 }
}


# Xeno Reptilian Host — cold-blooded scaly Xenomorph hybrids
trait_xeno_reptilian_host = {
	cost = {
			base = 0
			modifier = {
				add = -0
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xeno_reptilian_host_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		exists = from
		from = {
			OR = {
				has_country_flag = lv_cheat_mode
				has_country_flag = xeno_subspecies_research_unlocked
			}
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		interesting
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_carapace.dds"

	modifier = {
		army_health = 0.10
		army_damage_mult = 0.05
		pop_environment_tolerance = 0.10
	}

		slave_cost = { energy = 100 }
}

# Xeno Lithoid Host — stone-bodied Xenomorph hybrids with crystalline armor
trait_xeno_lithoid_host = {
	cost = {
			base = 0
			modifier = {
				add = -0
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xeno_lithoid_host_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		exists = from
		from = {
			OR = {
				has_country_flag = lv_cheat_mode
				has_country_flag = xeno_subspecies_research_unlocked
			}
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		interesting
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_carapace.dds"

	modifier = {
		army_health = 0.20
		pop_environment_tolerance = 0.20
		logistic_growth_mult = -0.10
		pop_housing_usage_mult = -0.05
	}

		slave_cost = { energy = 100 }
}

# Xeno Cybernetic Host — Xenomorphs with absorbed cybernetic implants
trait_xeno_cybernetic_host = {
	cost = {
			base = 0
			modifier = {
				add = -0
				has_country_flag = lv_cheat_mode
			}
		}
	initial = no
	category = advanced_genetic
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xeno_cybernetic_host_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
		exists = from
		from = {
			OR = {
				has_country_flag = lv_cheat_mode
				has_country_flag = xeno_subspecies_research_unlocked
			}
		}
	}

	species_possible_add = {
		can_add_genetic_traits = yes
	}

	species_possible_remove = {
		exists = from
		from = {
			OR = {
				can_remove_beneficial_genetic_traits = yes
				has_country_flag = lv_cheat_mode
			}
		}
	}

	species_possible_merge_add = {
		always = yes
	}
	species_possible_merge_remove = {
		always = yes
	}

	tags = {
		organic
		interesting
		
		
	}

	icon = "gfx/interface/icons/traits/trait_xenomorph_carapace.dds"

	modifier = {
		army_damage_mult = 0.10
		species_leader_exp_gain = 0.15
		planet_jobs_engineering_research_produces_mult = 0.05
	}

		slave_cost = { energy = 100 }
}

###############################################
# === xenomorph_gendered_body_traits.txt ===
###############################################
###############################################
# XENOMORPH GENDERED BODY TRAITS
#
# Xeno-flavored replacements for the gendered LV/Calcifire body traits.
#   MALE   traits (require Patriarch's Dominion) -> ovipositor / seeder themed
#   FEMALE traits (require Matriarch's Hunger)   -> brood-gland / egg themed
#
# Each gates via species_potential_add:
#   has_trait = trait_xenomorph  AND  owner has the matching sex-hive civic.
# Tiered traits use `opposites` so only one tier of a chain can be taken.
###############################################


# ============================================================
# MALE / PATRIARCHAL - Ovipositor & Seeder traits
# (require Patriarch's Dominion; replace LV/Calcifire penis/sperm/cum traits)
# ============================================================

# --- Ovipositor size chain (replaces large_penis / huge_penis / equine / mega_glans) ---
trait_xenomorph_engorged_ovipositor = {
	cost = 3
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_engorged_ovipositor_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
	}
	species_possible_add = {
		can_add_genetic_traits = yes
	}
	species_possible_remove = {
		exists = from
		from = { OR = { can_remove_beneficial_genetic_traits = yes has_country_flag = lv_cheat_mode } }
	}

	opposites = {
		trait_xenomorph_barbed_ovipositor
		trait_xenomorph_multiple_ovipositors
		trait_lv_all_female
	}

	modifier = {
		logistic_growth_mult = 0.10
		planet_pop_assembly_mult = 0.05
	}
	icon = "gfx/interface/icons/traits/trait_lv_excessive_oviposition.dds"
}

trait_xenomorph_barbed_ovipositor = {
	cost = 5
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_barbed_ovipositor_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
	}
	species_possible_add = {
		can_add_genetic_traits = yes
	}
	species_possible_remove = {
		exists = from
		from = { OR = { can_remove_beneficial_genetic_traits = yes has_country_flag = lv_cheat_mode } }
	}

	opposites = {
		trait_xenomorph_engorged_ovipositor
		trait_xenomorph_multiple_ovipositors
		trait_lv_all_female
	}

	modifier = {
		logistic_growth_mult = 0.15
		planet_pop_assembly_mult = 0.10
		army_damage_mult = 0.05
	}
	icon = "gfx/interface/icons/traits/trait_lv_aggressively_adaptive_reproduction.dds"
}

# --- Multiple ovipositors (replaces multiple_penises) ---
trait_xenomorph_multiple_ovipositors = {
	cost = 4
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_multiple_ovipositors_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
	}
	species_possible_add = {
		can_add_genetic_traits = yes
	}
	species_possible_remove = {
		exists = from
		from = { OR = { can_remove_beneficial_genetic_traits = yes has_country_flag = lv_cheat_mode } }
	}

	modifier = {
		planet_pop_assembly_mult = 0.10
		planet_xenomorph_host_breeders_produces_mult = 0.10
	}
	opposites = {
		trait_xenomorph_engorged_ovipositor
		trait_xenomorph_barbed_ovipositor
		trait_lv_all_female
	}
	icon = "gfx/interface/icons/traits/trait_lv_multiple_penises.dds"
}

# --- Prolific seeder (replaces high_volume_ejaculations / mega_sperm) ---
trait_xenomorph_prolific_seeder = {
	cost = 4
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_prolific_seeder_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
	}
	species_possible_add = {
		can_add_genetic_traits = yes
	}
	species_possible_remove = {
		exists = from
		from = { OR = { can_remove_beneficial_genetic_traits = yes has_country_flag = lv_cheat_mode } }
	}

	modifier = {
		# 3_64: slave-produces restoration (3_59-anchored)
		planet_xenomorph_host_breeders_produces_mult = 0.1
		planet_xenomorph_breeding_toys_produces_mult = 0.1
		logistic_growth_mult = 0.15
	}
	opposites = { trait_lv_all_female }
	icon = "gfx/interface/icons/traits/trait_lv_high_volume_ejaculations.dds"
}

# --- Narcotic seed (replaces aphrodisiac_cum / addictive_cum / nutritious_cum) ---
trait_xenomorph_narcotic_seed = {
	cost = 3
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_narcotic_seed_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
	}
	species_possible_add = {
		can_add_genetic_traits = yes
	}
	species_possible_remove = {
		exists = from
		from = { OR = { can_remove_beneficial_genetic_traits = yes has_country_flag = lv_cheat_mode } }
	}

	modifier = {
		planet_jobs_unity_produces_mult = 0.10
		logistic_growth_mult = 0.05
	}
	opposites = { trait_lv_all_female }
	icon = "gfx/interface/icons/traits/trait_lv_aphrodisiac_cum.dds"
}

# --- Virile musk (replaces excess_testosterone) ---
trait_xenomorph_virile_musk = {
	cost = 2
	category = normal
	allowed_archetypes = { BIOLOGICAL }
	custom_tooltip = trait_xenomorph_virile_musk_effect
	randomized = no

	species_potential_add = {
		has_trait = trait_xenomorph
	}
	species_possible_add = {
		can_add_genetic_traits = yes
	}
	species_possible_remove = {
		exists = from
		from = { OR = { can_remove_beneficial_genetic_traits = yes has_country_flag = lv_cheat_mode } }
	}

	modifier = {
		army_damage_mult = 0.15
		planet_miners_minerals_produces_mult = 0.10
		planet_farmers_food_produces_mult = -0.10
	}
	opposites = { trait_lv_all_female }
	icon = "gfx/interface/icons/traits/trait_lv_sexual_pheromones.dds"
}


# ============================================================
# FEMALE / MATRIARCHAL - Brood-gland & Egg traits
# (require Matriarch's Hunger; replace LV/Calcifire breast/womb/milk traits)
# ============================================================

# --- Resin-gland size chain (replaces large_breasts / huge_breasts / mega_nipples) ---


# --- Royal jelly glands (replaces high_volume_lactation / aphrodisiac_milk) ---

# --- Widened egg canal (replaces breeder_hips) ---

# --- Multiple clutches (replaces litters) ---

# --- Fertile ichor (replaces excess_estrogen) ---

# --- Prize broodmother (replaces prize_cow) ---
